<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

//Route::get('think', function () {
//    return 'hello,ThinkPHP5!';
//});

//Route::get('hello/:name', 'index/hello');

//Route::get('api/companyList', 'api/Index/companyList');
//Route::group('api',[
//    'boss/companyList'=>'api/Boss/companyList',
//    'boss/jobList'=>'api/Boss/jobList',
//    'boss/company'=>'api/Boss/companyInfo',
//    'lagou/jobList'=>'api/Lagou/jobList',
//    'lagou/companyList'=>'api/Lagou/jobList',
//    'lagou/company/:id'=>'api/Lagou/jobList',
//]);
Route::get('api/mainPageData', 'api/Index/index')->ext('html');
//boss路由
Route::group('api/boss', function () {
    Route::get('jobList', 'api/Boss/jobList');
    Route::get('companyList', 'api/Boss/companyList');
    Route::get('company', 'api/Boss/companyInfo');
})->ext('html');

//拉勾路由
Route::group('api/lagou', function () {
    Route::get('jobList', 'api/Lagou/jobList');
    Route::get('companyList', 'api/Lagou/companyList');
    Route::get('company', 'api/Lagou/companyInfo');
    Route::get('charts', 'api/Lagou/charts_data');
})->ext('html');

return [

];
